<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<script src="lib/easeljs-0.7.1.min.js" type="text/javascript"></script>
	<script src="lib/tweenjs-0.5.1.min.js" type="text/javascript"></script>
</head>

<body>
	<canvas id="mycanvas" width="800px" height="500px" style="border:1px solid #ccc"></canvas>

</body>
</html>

<script type="text/javascript">
	var stage = new createjs.Stage("mycanvas");
	stage.x = 100;
	stage.y = 100;
	var circle = new createjs.Shape();
	circle.graphics.beginFill("red").drawCircle(0,0,50);
	stage.addChild(circle);
	stage.update()
	createjs.Tween.get(circle).wait(1000).to({scaleX:0.2,scaleY:0.2}).wait(1000).to({scaleX:2,scaleY:2},1000,createjs.Ease.bounceInOut)

	createjs.Ticker.setFPS(60);/*内联必须加*/
	createjs.Ticker.addEventListener('tick',function(){
		stage.update()
	})

</script>